using AutoMapper;
using NBModular.Lib.Mapper.AutoMapper;
using NBModular.Module.WeChat.Application.WeChatService.ViewModels;
using NBModular.Module.WeChat.Domain.WeChat;

namespace NBModular.Module.WeChat.Application.WeChatService
{
    public class MapperConfig : IMapperConfig
    {
        public void Bind(IMapperConfigurationExpression cfg)
        {
            cfg.CreateMap<WeChatAddModel, WeChatEntity>();
            cfg.CreateMap<WeChatEntity, WeChatUpdateModel>();
            cfg.CreateMap<WeChatUpdateModel, WeChatEntity>();
        }
    }
}
